// 基本类型
const str: String = '我是字符串'
const num: number = 2
const hh: null = null
// 联合类型
const age: string | Number = 8676767
//数组
const arr: number[] = [1, 23, 5]
// 元组
const tuple: [String,Number] = ['zf', 1]

//枚举
enum USER_ROlE {
  USER = 1,
  arr,
}
console.log(USER_ROlE.arr)

const arr2=[2,1,'23232',{}] //不声明类型的情况下默认为 any

const fun= (xx:Array<Number>)=>{
  console.log(xx)
}
function fun2(dd:String){
  console.log(dd)
}
fun([787657656776])

fun2('1222')






